<?php
/**
 * 注册自动加载模块. <p/>
 * @catepory 【核心】
 * @author zhouhaichao(a)2008.sina.com
 * @version 1.0
 * @date: 2015/11/19
 * @time: 21:44
 */

spl_autoload_register(function ($class) {
    if ($class == "IncludeViewRenderer") {
        include_once ROOT . "/system/renderer/IncludeViewRenderer.class.php";
    } else if ($class == "SmartyViewRenderer") {
        include_once ROOT . "/system/renderer/SmartyViewRenderer.class.php";
    } elseif ($class == "PHPViewRenderer") {
        include_once ROOT . "/system/renderer/PHPViewRenderer.class.php";
    } elseif ($class == "Smarty") {
        include_once ROOT . "/system/library/smarty/Smarty.class.php";
    }
});
